#define FLUSH_NONE 0
#define FLUSH_LINE 1
#define FLUSH_FULL 2
#define SIZE 1024
typedef struct My_FILE
{
	int fileno;
	int flag;
	char outbuffer[SIZE];
	int cap;
	int size;
}mFILE;

mFILE *mFopen(const char *filename,const char*mode);
int mFwrite(const void* ptr,int num, mFILE*stream);
void mFflush(mFILE*stream);
void mFclose(mFILE*stream);


